﻿using System.Configuration;
using System.Web.Mvc;

namespace SlamDunk.CMS.UI.Controllers
{
    /// <summary>
    /// 异常控制器
    /// </summary>
    public class ErrorController : Controller
    {
        /// <summary>
        /// 返回404错误页
        /// </summary>
        /// <returns>404视图</returns>
        public ActionResult NotFound()
        {
            return this.Redirect(string.Format("{0}/404.html", ConfigurationManager.AppSettings["HtmlStorePrefix"]));
        }
    }
}
